package org.bim.view.drag.design.api.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Getter
@Setter
public class UserShareDTO {
    @ApiModelProperty(required = true,value = "分享的大屏Id")
    @NotBlank(message = "大屏Id不能为空")
    private String visualId;
    @ApiModelProperty(required = true,value = "分享者角色")
    @NotNull(message = "角色不能为空")
    private Integer role;
    @ApiModelProperty(required = true,value = "分享给的用户列表")
    @NotEmpty(message = "分享的用户不能为空")
    private List<String> userIds;
}
